<?php
namespace app\tadmin\model;
/**
 * 文档模型分类
 */
class Type extends BaseModel {

    /**
     * [1 => 'single' , 2=>'article']
     */
    public static function kv(){
        $all = self::all();
        $kv = [];
        foreach($all as $v){
            $kv[$v['id']] = $v['model_name'];
        }
        return $kv;
    }
    
}